var mysql      = require('mysql');
var connection = mysql.createConnection({
  host     : 'sql.m74.vhostgo.com',
  user     : 'a1249518821',
  password : 'fenfei149071',
  database : 'a1249518821',
  // host     : 'sqld-hk.bcehost.com',
  // user     : 'b795794198094671b77ef9819fc78cc4',
  // password : 'b904535844d64adc9bb4ae795fae9245',
  // database : 'cGCyDQjbQpseZuJbcslb',
  port: 3306,
  multipleStatements: true
});
 
connection.connect();
 
// connection.query('SELECT 1 + 1 AS solution', function (error, results, fields) {
//   if (error) throw error;
//   console.log('The solution is: ', results[0].solution);
// });

module.exports = connection